package com.dao;
import com.entity.AsLogs;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Date;

public interface AsLogsDao
{
    //写入一条日志
    public Integer addOneLog( AsLogs log );

    //查询指定用户的操作日志分页数据
    public ArrayList<AsLogs> getLogsPageByUserId(
            @Param( value = "userId" ) Integer userId ,
            @Param( value = "operateDatetime" ) Date operateDatetime ,
            @Param( value = "index" ) Integer index ,
            @Param( value = "quantity" ) Integer quantity );

    //查询指定用户的操作日志数量
    public Integer getLogsCountByUserId(
            @Param( value = "userId" ) Integer userId ,
            @Param( value = "operateDatetime" ) Date operateDatetime );
}
